home *** CD-ROM | disk | FTP | other *** search
/ Together in Jesus: 1st Reconciliation Computer Fun / Together in Jesus - First Reconciliation - Computer Fun.iso / euch5.swf / scripts / frame_12 / DoAction.as
Text File  |  2007-11-18  |  995b  |  46 lines

  1. this.bread_mc.onPress = function()
  2. {
  3.    this.startDrag();
  4. };
  5. this.bread_mc.onRelease = function()
  6. {
  7.    this.stopDrag();
  8.    if(this.hitTest(target4b_mc) == true)
  9.    {
  10.       soundCheering1.start();
  11.       gotoAndStop(13);
  12.       tryagain_mc._visible = false;
  13.    }
  14.    else
  15.    {
  16.       soundMournfultrumpet.start();
  17.       bread_mc._y = breadtarget_mc._y;
  18.       bread_mc._x = breadtarget_mc._x;
  19.       tryagain_mc._visible = true;
  20.    }
  21. };
  22. this.wine_mc.onPress = function()
  23. {
  24.    this.startDrag();
  25. };
  26. this.wine_mc.onRelease = function()
  27. {
  28.    this.stopDrag();
  29.    soundMournfultrumpet.start();
  30.    wine_mc._y = winetarget_mc._y;
  31.    wine_mc._x = winetarget_mc._x;
  32.    tryagain_mc._visible = true;
  33. };
  34. this.words3_mc.onPress = function()
  35. {
  36.    this.startDrag();
  37. };
  38. this.words3_mc.onRelease = function()
  39. {
  40.    this.stopDrag();
  41.    soundMournfultrumpet.start();
  42.    words3_mc._y = words3target_mc._y;
  43.    words3_mc._x = words3target_mc._x;
  44.    tryagain_mc._visible = true;
  45. };
  46.